/*  Reset & Base  */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #c9952a;
  --gold-light: #f0b429;
  --gold-shine: #fae019;
  --dark-navy: #171d42;
  --text-dark: #1a1a2e;
  --text-mid: #3d3d5c;
  --text-light: #afb1c2;
  --surface: rgba(255, 255, 255, 0.12);
  --surface-btn: rgba(240, 240, 240, 0.82);
  --radius-lg: 20px;
  --radius-pill: 50px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/*  Header â”€ */
.header {
  height: clamp(52px, 8vw, 72px);
  padding: 0 clamp(8px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #ffcc00 0%, #f1c40f 60%, #f4b635 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 100;
}

/* thin golden shimmer line at bottom */
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.header-accent {
  height: 4px;
  background: var(--dark-navy);
  flex-shrink: 0;
}

.footer-accent {
  height: 4px;
  background: linear-gradient(135deg, #ffcc00 0%, #f1c40f 60%, #f4b635 100%);
  flex-shrink: 0;
}

.header-left,
.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo {
  height: clamp(32px, 6.5vw, 60px);
  /* 32px @ 320px â†’ 60px @ 920px+ */
  padding-right: clamp(8px, 2vw, 18px);
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.Morth {
  height: clamp(30px, 6vw, 58px);
  /* slightly shorter than logo */
  padding-left: clamp(8px, 2vw, 18px);
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.header-center h1 {
  font-family: "Georgia", serif;
  font-size: clamp(14px, 3.5vw, 34px);
  /* 14px @ 320px â†’ 34px @ 970px+ */
  font-weight: 800;
  letter-spacing: clamp(1px, 0.4vw, 3px);
  color: #1a1a2e;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.header-center p {
  font-family: "Georgia", serif;
  font-size: clamp(8px, 1.6vw, 18px);
  /* 8px @ 320px â†’ 18px @ 1125px+ */
  font-weight: bold;
  letter-spacing: clamp(1px, 0.4vw, 2.5px);
  color: #000063;
  margin-top: 2px;
  opacity: 0.85;
}

/*  Hero  */
.hero {
  flex: 1;
  position: relative;
  background: url("Bg2.jpeg") center center / cover no-repeat;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

/* Subtle frosted overlay â€” preserves bg image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 0;
}

.hero>* {
  position: relative;
  z-index: 1;
}

/*  Buttons Row (centers the three platform buttons)  */
.buttons-row {
  flex: 0.9;
  /* takes all remaining hero space */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 24px 0;
  position: relative;
  z-index: 20;
  /* above rotating-section (z-index:2) so popups never hide beneath it */
}

/*  Platform Buttons  */
.platform-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

/* Active wrapper floats above its siblings so its popup is never buried */
.platform-wrapper.popup-open {
  z-index: 200;
}

.store-button {
  width: 230px;
  height: 100px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: var(--surface-btn);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

/* Gold shimmer fill on hover */
.store-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-shine) 0%, var(--gold-light) 100%);
  opacity: 0;
  border-radius: inherit;
  transition: var(--transition);
  z-index: 0;
}

.store-button:hover::before,
.store-button:focus::before {
  opacity: 1;
}

.store-button:hover,
.store-button:focus {
  transform: translateY(-3px);
  box-shadow:
    0 10px 28px rgba(201, 149, 42, 0.35),
    0 4px 8px rgba(0, 0, 0, 0.12);
  border-color: var(--gold);
  outline: none;
}

.store-button:active {
  transform: translateY(0) scale(0.96);
}

.btn-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.text b {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}

.text small {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--text-mid);
  text-transform: uppercase;
}

.store-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/*  Mode Popup  */
.mode-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 35, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: var(--radius-lg);
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  min-width: 140px;
}

.mode-popup.show {
  display: flex;
}

.mode-popup button {
  background: rgba(255, 255, 255, 0.07);
  color: #e8e8f0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
  transition: var(--transition);
  width: 100%;
  text-align: center;
}

.mode-popup button::before {
  display: none;
}

.mode-popup .live:hover,
.mode-popup .demo:hover {
  background: var(--gold-shine);
  color: var(--text-dark);
  border-color: transparent;
  transform: none;
  box-shadow: 0 4px 12px rgba(250, 224, 25, 0.3);
}

/*  Captcha Modal  */
.captcha-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 25, 0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.captcha-box {
  background: #1e2040;
  color: #e8e8f0;
  padding: 36px 32px 28px;
  border-radius: 24px;
  width: 380px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.captcha-box h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.captcha-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.close {
  position: absolute;
  top: 16px;
  right: 20px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-light);
  transition: color 0.2s;
  line-height: 1;
}

.close:hover {
  color: #fff;
}

.captcha-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* #captchaCanvas {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
} */

#captchaCanvas {
  text-align: center;
  width:50%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.refresh {
  width: 42px;
  height: 42px;
  font-size: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  color: #e8e8f0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
}

.refresh::before {
  display: none;
}

.refresh:hover {
  background: var(--gold-shine);
  color: var(--text-dark);
  border-color: transparent;
  transform: rotate(60deg);
}

.captcha-input {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
}

.captcha-input input {
  width: 100%;
  height: 48px;
  padding: 0 100px 0 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  font-size: 14px;
  color: #fff;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.captcha-input input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.captcha-input input:focus {
  border-color: var(--gold-light);
}

.ok-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 20px;
  background: var(--gold-shine);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0;
  text-transform: none;
}

.ok-btn::before {
  display: none;
}

.ok-btn:hover {
  background: var(--gold-light);
  transform: translateY(-50%) scale(1.03);
}

.download-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--gold-shine);
  color: var(--text-dark);
  text-align: center;
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(250, 224, 25, 0.25);
}

.download-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(250, 224, 25, 0.35);
}

.download-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/*  Captcha Status Message â”€â”€ */
.captcha-status {
  min-height: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 0;
  transition: all 0.2s;
}

.captcha-status.ok {
  color: #4ade80;
}

.captcha-status.err {
  color: #f87171;
}

/*  Rotating Section  */
.rotating-section {
  position: relative;
  width: 100%;
  height: 185px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
  margin-top: -20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Fade edges for smooth marquee illusion */
.rotating-section::before,
.rotating-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 5;
  pointer-events: none;
}

.rotating-section::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35), transparent);
}

.rotating-section::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.35), transparent);
}

.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}

.rotation-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.rotation-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/*  Stakeholder Cards â”€ */
.box {
  width: 165px;
  height: 165px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s;
}

.box:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(201, 149, 42, 0.5);
}

.box-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.box-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.box-title {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  line-height: 1.3;
}

.box-desc {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.4px;
  color: rgb(255, 255, 255);
}

/*  Designed Strip â”€â”€ */
.designed-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  font-weight: Bold;
  letter-spacing: 0.3px;
  color: rgb(255 255 255 / 88%);
  padding: 2px 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3;
}

/*  Footer â”€ */
.footer {
  height: clamp(44px, 6vw, 58px);
  padding: 0 clamp(10px, 2.5vw, 36px);
  background: var(--dark-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-light);
  font-family: "Georgia", serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-left {
  flex: 1;
  display: flex;
  align-items: center;
  font-size: clamp(9px, 1.2vw, 14px);
  gap: clamp(3px, 0.6vw, 8px);
  min-width: 0;
  overflow: hidden;
}

.footer-left .icon {
  font-size: clamp(13px, 1.5vw, 18px);
  opacity: 0.7;
  flex-shrink: 0;
}

.footer-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  height: clamp(22px, 4vw, 42px);
  /* 22px @ 320px â†’ 42px @ 1050px+ */
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--text-light);
}

/*  Responsiveness â”€â”€ */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .header {
    /* clamp() handles height & padding â€” only override layout if needed */
    padding: 0 clamp(6px, 2vw, 16px);
  }

  .header-center {
    position: static;
    transform: none;
    flex: 1;
    text-align: center;
  }

  /* clamp() already scales h1/p â€” no font-size override needed */

  .Morth,
  .logo {
    /* clamp() already scales these â€” keep only if min needs adjusting */
    flex-shrink: 0;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .buttons-row {
    flex: 0.9;
    /* size by content, no fractional flex weirdness */
    flex-direction: column;
    gap: 14px;
    padding: 14px 0 8px;
  }

  .platform-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
  }

  .mode-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    z-index: 99999;
  }

  .store-button {
    width: 80%;
    max-width: 240px;
    height: 76px;
    border-radius: 40px;
  }

  .store-icon {
    width: 28px;
    height: 28px;
  }

  .text b {
    font-size: 14px;
  }

  .text small {
    font-size: 9px;
  }

  .captcha-box {
    width: 90%;
    max-width: 320px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .captcha-input input {
    height: 42px;
    font-size: 13px;
  }

  .ok-btn {
    height: 30px;
    padding: 0 14px;
    font-size: 12px;
  }

  .download-btn {
    padding: 12px;
    font-size: 13px;
  }

  .rotating-section {
    height: 120px;
  }

  .box {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    padding: 6px;
  }

  .box-icon {
    width: 32px;
    height: 32px;
  }

  .box-title {
    font-size: 9.5px;
  }

  .box-desc {
    font-size: 7px;
  }

  .designed-strip {
    font-size: 9px;
  }

  .footer {
    /* clamp() handles height, padding, font-size */
    gap: 4px;
  }

  .footer-left {
    flex: 1;
    /* must grow â€” fixes email cutoff */
    min-width: 0;
    overflow: hidden;
  }

  .footer-left .item {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .footer-center {
    flex: 1;
    /* equal width forces logo to true centre */
    justify-content: center;
  }

  .footer-right {
    flex: 1;
    /* mirrors footer-left so logo stays centred */
    justify-content: flex-end;
    white-space: nowrap;
  }
}

/*  Very small screens (<408px): hide logo so email has room â”€ */
@media (max-width: 400px) {
  .footer {
    flex-wrap: wrap;
    height: auto;
    padding: 5px clamp(8px, 3vw, 14px);
    row-gap: 2px;
  }

  .footer-left {
    flex: 1 0 100%;
    justify-content: center;
    text-align: center;
  }

  .footer-center,
  .footer-right {
    flex: 1;
    justify-content: center;
  }
}